﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void Form2_Load(object sender, EventArgs e)
        {
            this.BackColor = Color.Blue;

         
        }

        private void button2_Click(object sender, EventArgs e)
        {
            var zh = userName.Text;
            var mm = passwords.Text;
            var xmm = truepassword.Text;

            if (!string.IsNullOrEmpty(zh) && !string.IsNullOrEmpty(mm) && xmm == mm)
            {
                MessageBox.Show("注册成功，恭喜");
                Form1._user.Add(zh, mm);
            }
            else {
                MessageBox.Show("注册未成功，是否重新注册");
            }
        }
    }
}
